using Microsoft.EntityFrameworkCore;
using Exercise.Api.Entity;

namespace Exercise.Api.Db
{
    public class ExerciseDb : DbContext
    {
        public DbSet<Users> Users { get; set; }

        public DbSet<Roles> Roles { get; set; }

        public DbSet<UserRoles> UserRoles { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        => options.UseSqlServer(@"server=DESKTOP-B0M4KE7;database=Exercise;uid=sa;pwd=123456;");
    }
}